package FileIO;

import java.io.*;
import java.util.ArrayList;


/**
 * Class to read in the numbers from a specified
 * file
 * @author mnashmi
 *
 */
public class InputReader {


	
	/**
	 * Reads the content of the file
	 * 
	 * @private
	 * @return String
	 */
	public static ArrayList<String> readFile(String file) {
		ArrayList<String> lines = new ArrayList<String>();
        
		try {
		      BufferedReader input =  
		    		  new BufferedReader(new FileReader(file));
		      try {
		        String line = null; 
		        while (( line = input.readLine()) != null){
                    lines.add(line);
		        }
		      } finally {
		        input.close();
		      }
		} catch (IOException ex) {
		      ex.printStackTrace();
		}
		    
        return lines;
				
	}
}
